<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::segmentation::grabcut::GaussianFitter类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1segmentation_1_1grabcut_1_1_gaussian_fitter.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1segmentation_1_1grabcut_1_1_gaussian_fitter-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::segmentation::grabcut::GaussianFitter类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="grabcut__segmentation_8h_source.html">grabcut_segmentation.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ad29ffa6dd8d1dc25e435aaa5d6a4a80a"><td class="memItemLeft" align="right" valign="top"><a id="ad29ffa6dd8d1dc25e435aaa5d6a4a80a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>GaussianFitter</b> (float epsilon=0.0001)</td></tr>
<tr class="separator:ad29ffa6dd8d1dc25e435aaa5d6a4a80a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d1cf36503fb2ad54197750e30f9ec9a"><td class="memItemLeft" align="right" valign="top"><a id="a6d1cf36503fb2ad54197750e30f9ec9a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_gaussian_fitter.html#a6d1cf36503fb2ad54197750e30f9ec9a">add</a> (const <a class="el" href="structpcl_1_1segmentation_1_1grabcut_1_1_color.html">Color</a> &amp;c)</td></tr>
<tr class="memdesc:a6d1cf36503fb2ad54197750e30f9ec9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a color sample <br /></td></tr>
<tr class="separator:a6d1cf36503fb2ad54197750e30f9ec9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeba5a5cc9e6a88770a02e47eb5b7523b"><td class="memItemLeft" align="right" valign="top"><a id="aeba5a5cc9e6a88770a02e47eb5b7523b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_gaussian_fitter.html#aeba5a5cc9e6a88770a02e47eb5b7523b">fit</a> (<a class="el" href="structpcl_1_1segmentation_1_1grabcut_1_1_gaussian.html">Gaussian</a> &amp;g, std::size_t total_count, bool compute_eigens=false) const</td></tr>
<tr class="memdesc:aeba5a5cc9e6a88770a02e47eb5b7523b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Build the gaussian out of all the added color samples <br /></td></tr>
<tr class="separator:aeba5a5cc9e6a88770a02e47eb5b7523b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12881c27c50ef2b52dfba1d34e1c4821"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_gaussian_fitter.html#a12881c27c50ef2b52dfba1d34e1c4821">getEpsilon</a> ()</td></tr>
<tr class="separator:a12881c27c50ef2b52dfba1d34e1c4821"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a061af9e895042e751462e482de3550ac"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_gaussian_fitter.html#a061af9e895042e751462e482de3550ac">setEpsilon</a> (float epsilon)</td></tr>
<tr class="separator:a061af9e895042e751462e482de3550ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a1f1b50320095c09f8d92febc350edbee"><td class="memItemLeft" align="right" valign="top"><a id="a1f1b50320095c09f8d92febc350edbee"></a>
Eigen::Vector3f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_gaussian_fitter.html#a1f1b50320095c09f8d92febc350edbee">sum_</a></td></tr>
<tr class="memdesc:a1f1b50320095c09f8d92febc350edbee"><td class="mdescLeft">&#160;</td><td class="mdescRight">sum of r,g, and b <br /></td></tr>
<tr class="separator:a1f1b50320095c09f8d92febc350edbee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4367cc7287f3620bdf379b7c6a6d7460"><td class="memItemLeft" align="right" valign="top"><a id="a4367cc7287f3620bdf379b7c6a6d7460"></a>
Eigen::Matrix3f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_gaussian_fitter.html#a4367cc7287f3620bdf379b7c6a6d7460">accumulator_</a></td></tr>
<tr class="memdesc:a4367cc7287f3620bdf379b7c6a6d7460"><td class="mdescLeft">&#160;</td><td class="mdescRight">matrix of products (i.e. r*r, r*g, r*b), some values are duplicated. <br /></td></tr>
<tr class="separator:a4367cc7287f3620bdf379b7c6a6d7460"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d6b78ddb11277b60a6c113380f987ef"><td class="memItemLeft" align="right" valign="top"><a id="a2d6b78ddb11277b60a6c113380f987ef"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_gaussian_fitter.html#a2d6b78ddb11277b60a6c113380f987ef">count_</a></td></tr>
<tr class="memdesc:a2d6b78ddb11277b60a6c113380f987ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">count of color samples added to the gaussian <br /></td></tr>
<tr class="separator:a2d6b78ddb11277b60a6c113380f987ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5678384a9eaa19213a56a474a1bbc269"><td class="memItemLeft" align="right" valign="top"><a id="a5678384a9eaa19213a56a474a1bbc269"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_gaussian_fitter.html#a5678384a9eaa19213a56a474a1bbc269">epsilon_</a></td></tr>
<tr class="memdesc:a5678384a9eaa19213a56a474a1bbc269"><td class="mdescLeft">&#160;</td><td class="mdescRight">small value to add to covariance matrix diagonal to avoid singular values <br /></td></tr>
<tr class="separator:a5678384a9eaa19213a56a474a1bbc269"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Helper class that fits a single <a class="el" href="structpcl_1_1segmentation_1_1grabcut_1_1_gaussian.html" title="Gaussian structure">Gaussian</a> to color samples </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a12881c27c50ef2b52dfba1d34e1c4821"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12881c27c50ef2b52dfba1d34e1c4821">&#9670;&nbsp;</a></span>getEpsilon()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float pcl::segmentation::grabcut::GaussianFitter::getEpsilon </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>epsilon </dd></dl>
<div class="fragment"><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;{ <span class="keywordflow">return</span> (<a class="code" href="classpcl_1_1segmentation_1_1grabcut_1_1_gaussian_fitter.html#a5678384a9eaa19213a56a474a1bbc269">epsilon_</a>); }</div>
<div class="ttc" id="aclasspcl_1_1segmentation_1_1grabcut_1_1_gaussian_fitter_html_a5678384a9eaa19213a56a474a1bbc269"><div class="ttname"><a href="classpcl_1_1segmentation_1_1grabcut_1_1_gaussian_fitter.html#a5678384a9eaa19213a56a474a1bbc269">pcl::segmentation::grabcut::GaussianFitter::epsilon_</a></div><div class="ttdeci">float epsilon_</div><div class="ttdoc">small value to add to covariance matrix diagonal to avoid singular values</div><div class="ttdef"><b>Definition:</b> grabcut_segmentation.h:288</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a061af9e895042e751462e482de3550ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a061af9e895042e751462e482de3550ac">&#9670;&nbsp;</a></span>setEpsilon()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::segmentation::grabcut::GaussianFitter::setEpsilon </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>epsilon</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>set epsilon which will be added to the covariance matrix diagonal which avoids singular covariance matrix </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">epsilon</td><td>user defined epsilon </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;{ <a class="code" href="classpcl_1_1segmentation_1_1grabcut_1_1_gaussian_fitter.html#a5678384a9eaa19213a56a474a1bbc269">epsilon_</a> = epsilon; }</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>segmentation/include/pcl/segmentation/<a class="el" href="grabcut__segmentation_8h_source.html">grabcut_segmentation.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>segmentation</b></li><li class="navelem"><b>grabcut</b></li><li class="navelem"><a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_gaussian_fitter.html">GaussianFitter</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
